package com.dianping.cat.home.router.entity;

import com.dianping.cat.home.router.BaseEntity;
import com.dianping.cat.home.router.IVisitor;

public class Server
  extends BaseEntity<Server>
{
  private String m_id;
  private int m_port;
/* 11 */   private double m_weight = 1.0D;






/* 18 */   public void accept(IVisitor visitor) { visitor.visitServer(this); }



  public boolean equals(Object obj) {
/* 23 */     if (obj instanceof Server) {
/* 24 */       Server _o = (Server)obj;

/* 26 */       if (!equals(getId(), _o.getId())) {
/* 27 */         return false;
      }

/* 30 */       if (getPort() != _o.getPort()) {
/* 31 */         return false;
      }

/* 34 */       if (getWeight() != _o.getWeight()) {
/* 35 */         return false;
      }


/* 39 */       return true;
    }

/* 42 */     return false;
  }


/* 46 */   public String getId() { return this.m_id; }



/* 50 */   public int getPort() { return this.m_port; }



/* 54 */   public double getWeight() { return this.m_weight; }



  public int hashCode() {
/* 59 */     int hash = 0;

/* 61 */     hash = hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
/* 62 */     hash = hash * 31 + this.m_port;
/* 63 */     return hash * 31 + (int)(Double.doubleToLongBits(this.m_weight) ^ Double.doubleToLongBits(this.m_weight) >>> 32);
  }




  public void mergeAttributes(Server other) {
/* 70 */     if (other.getId() != null) {
/* 71 */       this.m_id = other.getId();
    }

/* 74 */     this.m_port = other.getPort();

/* 76 */     this.m_weight = other.getWeight();
  }

  public Server setId(String id) {
/* 80 */     this.m_id = id;
/* 81 */     return this;
  }

  public Server setPort(int port) {
/* 85 */     this.m_port = port;
/* 86 */     return this;
  }

  public Server setWeight(double weight) {
/* 90 */     this.m_weight = weight;
/* 91 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/router/entity/Server.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */